package com.xiangge.es.service;

import com.xiangge.es.pojo.ESDocument;

import java.util.List;

public interface DocumentSearchService {

 
    /**
     * get document list by name and id order by orderField parameter
     *
     * @param name       queried name
     * @param projectId  contained project id
     * @param orderField order filed  name
     * @return document list
     */
    List<ESDocument> getDocumentsByNameOrderByCreateOn(String name, 
                                                       String projectId,                     
                                                       String orderField);


    List<ESDocument> findByName(String name);
}